Optimal. Leaf size=188 \[ \frac{\sqrt{2} \sqrt{b^2-4 a c} \sqrt{f+g x} \sqrt{-\frac{c \left (a+b x+c x^2\right )}{b^2-4 a c}} E\left (\sin ^{-1}\left (\frac{\sqrt{\frac{b+2 c x+\sqrt{b^2-4 a c}}{\sqrt{b^2-4 a c}}}}{\sqrt{2}}\right )|-\frac{2 \sqrt{b^2-4 a c} g}{2 c f-\left (b+\sqrt{b^2-4 a c}\right ) g}\right )}{c \sqrt{a+b x+c x^2} \sqrt{\frac{c (f+g x)}{2 c f-g \left (\sqrt{b^2-4 a c}+b\right )}}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.064988, antiderivative size = 188, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 24, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.083, Rules used = {718, 424} \[ \frac{\sqrt{2} \sqrt{b^2-4 a c} \sqrt{f+g x} \sqrt{-\frac{c \left (a+b x+c x^2\right )}{b^2-4 a c}} E\left (\sin ^{-1}\left (\frac{\sqrt{\frac{b+2 c x+\sqrt{b^2-4 a c}}{\sqrt{b^2-4 a c}}}}{\sqrt{2}}\right )|-\frac{2 \sqrt{b^2-4 a c} g}{2 c f-\left (b+\sqrt{b^2-4 a c}\right ) g}\right )}{c \sqrt{a+b x+c x^2} \sqrt{\frac{c (f+g x)}{2 c f-g \left (\sqrt{b^2-4 a c}+b\right )}}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 718
Rule 424
Rubi steps
\begin{align*} \int \frac{\sqrt{f+g x}}{\sqrt{a+b x+c x^2}} \, dx &=\frac{\left (\sqrt{2} \sqrt{b^2-4 a c} \sqrt{f+g x} \sqrt{-\frac{c \left (a+b x+c x^2\right )}{b^2-4 a c}}\right ) \operatorname{Subst}\left (\int \frac{\sqrt{1+\frac{2 \sqrt{b^2-4 a c} g x^2}{2 c f-b g-\sqrt{b^2-4 a c} g}}}{\sqrt{1-x^2}} \, dx,x,\frac{\sqrt{\frac{b+\sqrt{b^2-4 a c}+2 c x}{\sqrt{b^2-4 a c}}}}{\sqrt{2}}\right )}{c \sqrt{\frac{c (f+g x)}{2 c f-b g-\sqrt{b^2-4 a c} g}} \sqrt{a+b x+c x^2}}\\ &=\frac{\sqrt{2} \sqrt{b^2-4 a c} \sqrt{f+g x} \sqrt{-\frac{c \left (a+b x+c x^2\right )}{b^2-4 a c}} E\left (\sin ^{-1}\left (\frac{\sqrt{\frac{b+\sqrt{b^2-4 a c}+2 c x}{\sqrt{b^2-4 a c}}}}{\sqrt{2}}\right )|-\frac{2 \sqrt{b^2-4 a c} g}{2 c f-\left (b+\sqrt{b^2-4 a c}\right ) g}\right )}{c \sqrt{\frac{c (f+g x)}{2 c f-\left (b+\sqrt{b^2-4 a c}\right ) g}} \sqrt{a+b x+c x^2}}\\ \end{align*}
Mathematica [C] time = 0.815616, size = 365, normalized size = 1.94 \[ \frac{i \left (g \left (\sqrt{b^2-4 a c}-b\right )+2 c f\right ) \sqrt{\frac{g \left (\sqrt{b^2-4 a c}+b+2 c x\right )}{g \left (\sqrt{b^2-4 a c}+b\right )-2 c f}} \sqrt{1-\frac{2 c (f+g x)}{g \left (\sqrt{b^2-4 a c}-b\right )+2 c f}} \left (E\left (i \sinh ^{-1}\left (\sqrt{2} \sqrt{\frac{c}{\left (b+\sqrt{b^2-4 a c}\right ) g-2 c f}} \sqrt{f+g x}\right )|\frac{2 c f-\left (b+\sqrt{b^2-4 a c}\right ) g}{2 c f+\left (\sqrt{b^2-4 a c}-b\right ) g}\right )-\text{EllipticF}\left (i \sinh ^{-1}\left (\sqrt{2} \sqrt{f+g x} \sqrt{\frac{c}{g \left (\sqrt{b^2-4 a c}+b\right )-2 c f}}\right ),\frac{2 c f-g \left (\sqrt{b^2-4 a c}+b\right )}{g \left (\sqrt{b^2-4 a c}-b\right )+2 c f}\right )\right )}{\sqrt{2} c g \sqrt{a+x (b+c x)} \sqrt{\frac{c}{g \left (\sqrt{b^2-4 a c}+b\right )-2 c f}}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.311, size = 747, normalized size = 4. \begin{align*}{\frac{\sqrt{2}}{2\,g \left ( cg{x}^{3}+bg{x}^{2}+cf{x}^{2}+agx+bfx+af \right ){c}^{2}}\sqrt{gx+f}\sqrt{c{x}^{2}+bx+a} \left ( g\sqrt{-4\,ac+{b}^{2}}+bg-2\,cf \right ) \sqrt{-{c \left ( gx+f \right ) \left ( g\sqrt{-4\,ac+{b}^{2}}+bg-2\,cf \right ) ^{-1}}}\sqrt{{g \left ( -b-2\,cx+\sqrt{-4\,ac+{b}^{2}} \right ) \left ( 2\,cf-bg+g\sqrt{-4\,ac+{b}^{2}} \right ) ^{-1}}}\sqrt{{g \left ( b+2\,cx+\sqrt{-4\,ac+{b}^{2}} \right ) \left ( g\sqrt{-4\,ac+{b}^{2}}+bg-2\,cf \right ) ^{-1}}} \left ({\it EllipticF} \left ( \sqrt{2}\sqrt{-{c \left ( gx+f \right ) \left ( g\sqrt{-4\,ac+{b}^{2}}+bg-2\,cf \right ) ^{-1}}},\sqrt{-{ \left ( g\sqrt{-4\,ac+{b}^{2}}+bg-2\,cf \right ) \left ( 2\,cf-bg+g\sqrt{-4\,ac+{b}^{2}} \right ) ^{-1}}} \right ) gb-2\,f{\it EllipticF} \left ( \sqrt{2}\sqrt{-{\frac{c \left ( gx+f \right ) }{g\sqrt{-4\,ac+{b}^{2}}+bg-2\,cf}}},\sqrt{-{\frac{g\sqrt{-4\,ac+{b}^{2}}+bg-2\,cf}{2\,cf-bg+g\sqrt{-4\,ac+{b}^{2}}}}} \right ) c-{\it EllipticF} \left ( \sqrt{2}\sqrt{-{c \left ( gx+f \right ) \left ( g\sqrt{-4\,ac+{b}^{2}}+bg-2\,cf \right ) ^{-1}}},\sqrt{-{ \left ( g\sqrt{-4\,ac+{b}^{2}}+bg-2\,cf \right ) \left ( 2\,cf-bg+g\sqrt{-4\,ac+{b}^{2}} \right ) ^{-1}}} \right ) g\sqrt{-4\,ac+{b}^{2}}-{\it EllipticE} \left ( \sqrt{2}\sqrt{-{c \left ( gx+f \right ) \left ( g\sqrt{-4\,ac+{b}^{2}}+bg-2\,cf \right ) ^{-1}}},\sqrt{-{ \left ( g\sqrt{-4\,ac+{b}^{2}}+bg-2\,cf \right ) \left ( 2\,cf-bg+g\sqrt{-4\,ac+{b}^{2}} \right ) ^{-1}}} \right ) bg+2\,{\it EllipticE} \left ( \sqrt{2}\sqrt{-{\frac{c \left ( gx+f \right ) }{g\sqrt{-4\,ac+{b}^{2}}+bg-2\,cf}}},\sqrt{-{\frac{g\sqrt{-4\,ac+{b}^{2}}+bg-2\,cf}{2\,cf-bg+g\sqrt{-4\,ac+{b}^{2}}}}} \right ) cf+\sqrt{-4\,ac+{b}^{2}}{\it EllipticE} \left ( \sqrt{2}\sqrt{-{c \left ( gx+f \right ) \left ( g\sqrt{-4\,ac+{b}^{2}}+bg-2\,cf \right ) ^{-1}}},\sqrt{-{ \left ( g\sqrt{-4\,ac+{b}^{2}}+bg-2\,cf \right ) \left ( 2\,cf-bg+g\sqrt{-4\,ac+{b}^{2}} \right ) ^{-1}}} \right ) g \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{g x + f}}{\sqrt{c x^{2} + b x + a}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{\sqrt{g x + f}}{\sqrt{c x^{2} + b x + a}}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{f + g x}}{\sqrt{a + b x + c x^{2}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{g x + f}}{\sqrt{c x^{2} + b x + a}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]